---
title: "close modal · RUAL Documentation"
description: "Closes the first modal that is open."
canonical: https://docs.rual.nl/block-types/state ui/state_close_flow_modal
language: en
---

# close modal

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Closes the first modal that is open.

- flow `flow`

A typical wiring for [close modal](https://docs.rual.nl/block-types/state%20ui/state_close_flow_modal): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the close modal block: typical wiring for close modal.](https://docs.rual.nl/canvas-examples/state_close_flow_modal.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
